﻿/**
 * ConfigScreen.cs - Configuration screen  (change settings)
 * 
 * Part of BoulderDAM - A BoulderDash clone using C# and SDL
 * Nacho Cabanes & students of DAM IES San Vicente, 2014
 * 
 * Revisions
 * #     Date         Creator, changes
 * ----  -----------  -------------------------------------------------------
 * 0.03  03-apr-2014  Nacho Cabanes: Empty skeleton
 * 0.04 07-apr-2014  Hodei Pérez  Alejandra De Freitas
 */

namespace Boulder
{
    class ConfigScreen
    {
        private Font font18;
        bool sound = false;

        public ConfigScreen()
        {
            font18 = new Font("data/Joystix.ttf", 18);
        }

        
        public void Run()
        {
            Hardware.ClearScreen();
            Hardware.WriteHiddenText(" DO YOU WANT TO ENABLE SOUND? S/N",
                    350, 100,
                    0x08, 0x6D, 0x08,
                    font18);

            if (Hardware.KeyPressed(Hardware.KEY_S))
            {
                Hardware.WriteHiddenText("SOUND ENABLED", 350, 100,
                    0x08, 0x6D, 0x08,
                    font18);
            }

            if (Hardware.KeyPressed(Hardware.KEY_N))
            {
                Hardware.WriteHiddenText("SOUND DISABLED", 350, 100,
                   0x08, 0x6D, 0x08,
                   font18);
            }

            Hardware.ClearScreen();
            Hardware.WriteHiddenText(" PRESS R FOR RETRO IMAGES OR PRESS M TO MODERN IMAGES",
                    350, 100,
                    0x08, 0x6D, 0x08,
                    font18);

            if (Hardware.KeyPressed(Hardware.KEY_R))
            {
                Hardware.WriteHiddenText("RETRO APPAREANCE", 350, 100,
                    0x08, 0x6D, 0x08,
                    font18);
            }

            if (Hardware.KeyPressed(Hardware.KEY_M))
            {
                Hardware.WriteHiddenText("MODERN APPAREANCE", 350, 100,
                   0x08, 0x6D, 0x08,
                   font18);
            }


        }
    }
}
